<?php

namespace app\admin\model;

use think\Model;
use think\model\relation\BelongsTo;

/**
 * Order
 */
class Order extends Model
{
    // 表主键
    protected $pk = 'oid';

    // 表名
    protected $name = 'order';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = true;
    protected $updateTime = false;


    public function user(): BelongsTo
    {   
        
         return $this->belongsTo(User::class,'user_id');
    }


}